#include "XrdDMSimSiteInfo.hh"

XrdDMSimSiteInfo::XrdDMSimSiteInfo() : fName(""),fPort("1094"),fSpeedMin(0),fSpeedMax(0),fFailure(0)
{
}

XrdDMSimSiteInfo::~XrdDMSimSiteInfo()
{
}

void XrdDMSimSiteInfo::SetSiteInfo(int minSpeed, int maxSpeed,int percentFailure)
{

  fSpeedMin = minSpeed;
  fSpeedMax = maxSpeed;
  fFailure = percentFailure;
}


void XrdDMSimSiteInfo::Print()
{
  cout << GetName() << " : ";
  cout << "Speed = (" << fSpeedMin;
  cout << "-" << fSpeedMax << ")kB/s";
  cout << "\tFailure = " << fFailure << "%"<< endl;
  
}

